Line Pack > Configuring Line Pack > Configuring Calculation Settings

Configuring Calculation Settings

The Calculations page is used to configure formula properties, status bits, and other required calculation settings.

Click the following image to see an enlarged sample Calculations page:

Click for more information

The properties for each section of this page are described below. See the following subsections below for more information:

Formulas

For more information about the specifics formulas used for each type of calculation, see Line Pack Formulas.

Property Description

Pipeline content

Select the substance in the pipeline:

  • Natural gas
  • Supercritical CO2
  • Liquids

Depending on the selection made here, the Line Pack editor will display custom configuration fields and dialog boxes.

Note: It's a good idea to create a separate device instance for each type of calculation, if several are required.

Average temperature formula

Average temperature formula

Specify the formula to use when calculating average temperature. Options include:

  • Arithmetic mean — For Arithmetic mean, specify the maximum number of temperature inputs that will be used in the arithmetic mean Average Temperature calculation. This setting configures the number of temperature inputs allowed (n), in addition to the Temperature: 1 and Temperature: 2. Up to 20 inputs per pipeline segment are allowed.
  • Weighted average — For Weighted average, the formula uses two temperature inputs: Inlet Temperature and Outlet Temperature. This is the default option.

See the Average Temperature formula for more information about how these options are calculated.

Average pressure formula

Average pressure formula

Specify the formula to use when calculating average pressure. Options include:

  • Arithmetic mean — For Arithmetic mean, specify the maximum number of pressure inputs that will be used in the arithmetic mean Average Pressure calculation. This setting configures the number of pressure inputs allowed (n), in addition to the Pressure: 1 and Pressure: 2. Up to 20 inputs per pipeline segment are allowed.
  • Two-thirds rule — For the Two-thirds rule, the formula uses two pressure inputs: Inlet Pressure and Outlet Pressure. This is the default option.
  • Complex arithmetic mean — For Complex arithmetic mean, specify the maximum additional pressure inputs that will be used in the complex arithmetic mean Average Pressure calculation. The formula for this average requires Inlet Pressure and Outlet Pressure, in addition to multiple pressure values at different points on the pipeline segment. This setting configures the number of pressure inputs allowed (n), in addition to the Pressure: 1 and Pressure: 2. Up to 20 inputs per pipeline segment are allowed.

See the Average Pressure formula for more information about how these options are calculated.

Supercompressibility formula

Note: This option applies only to natural gas.

Supercompressibility formula

Specify the formula to use when calculating the supercompressibility factor. Supercompressibility calculations take into account how different gas compositions compress. These differences can be applied to corrected volumes using the following supercompressibility calculation options:

  • AGA 8 - Gross Method 2
  • NX 19 - Legacy
  • NX 19

Note: The Last Segment Input: Methane UDC must be set if using the NX19 supercompressibility formula.

See the Supercompressibility Factor for more information.

Preferred (density) rollup calculation

Note: This option applies only to CO2.

Preferred rollup calculation

Specify the CO2 density value to use in the rollup if both values are available for a segment. Options include:

See the Overview for more information about density sources. The rollup calculation method can be overridden at the pack segment or pack sub-segment level if required.

MAOP formula

MAOP formula

Maximum Allowed Operating Pressure (MAOP) is an optional secondary value that is only calculated when the normal line pack calculation executes.

Specify the formula to use when calculating the Maximum Allowed Operating Pressure (MAOP). Options include:

  • Not calculated
  • Single input
  • Same as average pressure

For Single input and Same as average pressure, specify how frequently to calculate (Calculate every number of seconds) the pack at the Maximum Allowed Operating Pressure (MAOP).

Status bits

The items in this section allow you to define the status bit positions for Line Pack status bits in an output point’s user status field. These options can be set to <Not Used> to turn off the setting of a bit. See Status Bits for more information about each of these bits.

Property Description

Calc error

Specifies the bit to set on the output point if there is an error in the calculation.

Used in line pack calc

Specifies the bit to set on any points used as an input in the Line Pack calculation.

Default used

Specifies the bit to set on a pack segment if one of its default or base inputs were used in the calculation.

Set by line pack

Specifies the bit to set on any value that Line Pack sets.

Other settings

Property Description

Bad input action

Defines what action to take when a calculation input is missing or falls outside the range specified in the Base Inputs dialog box. Options include:

  • Use last good input value and calculate will continue the Line Pack calculation for a pack segment that has an invalid input by using the last input value stored in the associated Last Segment Input: point.
  • Stop calculation and use last good result halts the Line Pack calculation and uses the last calculated result and sets the unreliable bit.

See Configuring UDCs Mappings for more information about the Last Segment Input: points.

Rule evaluation method

Determines which custom calculation rules to use when determining the input for a pack segment. Rules are evaluated in order from top to bottom. Options include:

  • All rules are evaluated will evaluate all the rules. If multiple rules that validate to true set the same input, then the value set by the first rule will be used.
  • When the Only the first rule to validate is used option is used, if any rule evaluates to be true, then that input is used and no other rules are evaluated.

More:

ArrowLine Pack Formulas

Back to top

Let us know how we can improve this topic.

CygNet at weatherford.com

© 2020 Weatherford. All rights reserved.